package com.cap.dreamcircle.Api;

import com.cap.dreamcircle.Model.Bean.BaseBean;
import com.cap.dreamcircle.Model.Bean.FellowFansForbiddenBean;

import java.util.HashMap;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by liucxu on 2017/10/17.
 */

public interface FriendService {
    @FormUrlEncoded
    @POST("friends.do")
    Observable<FellowFansForbiddenBean> requestMyFollows(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<FellowFansForbiddenBean> requestMyFans(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<BaseBean> fellow(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<BaseBean> disFellow(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<BaseBean> forbiddenUser(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<BaseBean> disForbiddenUser(@FieldMap HashMap<String,String> params);

    @FormUrlEncoded
    @POST("friends.do")
    Observable<FellowFansForbiddenBean> requestForbiddenUsers(@FieldMap HashMap<String,String> params);
}
